﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for ProductionOrder.xaml
    /// </summary>
    public partial class TVERSART
    { 
        public TVERSART()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VVERSART();
            MESSAGES += "VLLOAD;VLDEL;";
            this.DataContext = MV;
            InitializeComponent();
         }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
            dwVL = dwMaster;
            if (dwMaster != null)
            {
                SART = dwMaster["VVERSART"].ToString();
                VSPED = dwMaster["VSPED"].ToString();
                KEY = dwMaster["VVERSART"].ToString() + dwMaster["VSPED"].ToString();
            }
            else
            {
                SART = "";
                VSPED = "";
                KEY = "";
            }

        }
    }
}
